﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace zoombies__
{
    class Player : Entity
    {
        public Player(Texture2D texture, Vector2 position)
            : base(texture, position)
        {
        }
        public override void Update(GameTime gameTime, Vector2 followPos)
        {
            KeyboardState keyboardState = Keyboard.GetState();
            if (keyboardState.IsKeyDown(Keys.W))
            {
                position.Y -= 5;
            }
            if (keyboardState.IsKeyDown(Keys.A))
            {
                position.X -= 5;
            }
            if (keyboardState.IsKeyDown(Keys.S))
            {
                position.Y += 5;
            }
            if (keyboardState.IsKeyDown(Keys.D))
            {
                position.X += 5;
            }
            base.Update(gameTime, new Vector2());
        }
    }
}
